﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="RFPDetails.aspx.cs" Inherits="Page_RFP_RFPDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div id="top" class="PageTitleStyle">
            <asp:Image ID="bgpicRFPInfo" runat="server" ImageUrl="~/Images/RFP/bgpicRFPInfoTop.png" />
        </div>
        <div id="RFPDetails">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:DetailsView ID="dvRFPInfo" runat="server" AutoGenerateRows="False" 
                    CssClass="DataViewStyle" GridLines="None">
                    <Fields>
                        <asp:BoundField HeaderText="Title" DataField="RFPTitle">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Category" DataField="RFPType">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Detail" DataField="RFPDetail">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Poster" DataField="ExpertId">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Posted" DataField="RFPDate">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                    </Fields>
                </asp:DetailsView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px" align="left" style="padding-left: 10px;">
                            <asp:ImageButton ID="btnRFPCreateVT" runat="server" ImageUrl="~/Images/RFP/btnCreateVT.png"
                                OnClick="btnRFPCreateVT_Click" Visible="False" CausesValidation="False" />
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnRFPInfoBack" runat="server" 
                                ImageUrl="~/Images/btnPublicBack.png" onclick="btnRFPInfoBack_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="R.F.P.sVirtualTeam" style="display:none;">
            <div class="TopStyle">
                R.F.P.'s Virtual Team
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="GVTeamInfo" runat="server" AutoGenerateColumns="False" 
                    CssClass="DataViewStyle" GridLines="None">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label6" runat="server" Text="Team Name"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LBTeamName" runat="server" onclick="LBTeamName_Click" 
                                    Text='<%# Eval("TeamName") %>' CommandArgument='<%# Eval("TeamId") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="320px" />
                            <HeaderStyle CssClass="DataHearderStyle" />
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label7" runat="server" Text="Build Date"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("TeamDate") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="160px" />
                            <HeaderStyle CssClass="DataHearderStyle" />
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
        </div>
        <div id="RFPsReply">
            <div class="TopStyle" style="color:#0F3DB4">
                R.F.P.'s Reply
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="GVRFPReply" runat="server" AutoGenerateColumns="False" 
                    CssClass="DataViewStyle" GridLines="None" AllowPaging="True" 
                    onpageindexchanging="GVRFPReply_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label1" runat="server" Text="Replier"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LBreplier" runat="server" CommandArgument='<%# Eval("RFPReplyExpert") %>' style="color:#0000CC; text-decoration: none;"
                                    onclick="LBreplier_Click" Text='<%# Eval("RFPReplyExpert") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#0F3DB4"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label2" runat="server" Text="Response Content"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("RFPReplyContent") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="280px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#0F3DB4"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label4" runat="server" Text="Date"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("RFPReplyDate") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#0F3DB4"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
        </div>
        <div id="ReplyRFP">
            <div class="TopStyle" style="color:#0F3DB4">
                Reply R.F.P.</div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtReplyRFP" runat="server" TextMode="MultiLine" 
                                CssClass="TextboxStyle" Height="150px" Width="490px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:440px">
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvReplyRFP" runat="server" ErrorMessage="Required."
                                Font-Bold="True" Font-Size="Small" ForeColor="#CC0000" ControlToValidate="txtReplyRFP"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnReplyRFPSubmit" runat="server" 
                                ImageUrl="~/Images/btnPublicSubmit.png" onclick="btnReplyRFPSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
</asp:Content>
